package feeinterface.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ulwx.tool.DbUtils;
import com.ulwx.type.TResult;

import feeinterface.modeldb.ChannelSpecialWithSpNoMo;

/**
 * 
 * @author 黄杰
 *
 */
public class ChannelSpecialWithSpNoMoDao {
	/**
	 * 类型 ID 目前是SP不回传上行的，都用1
	 * @param ChannelID
	 * @return
	 * @throws Exception
	 */
	public static boolean isNoMo(Integer ChannelID,TResult<ChannelSpecialWithSpNoMo> t) throws Exception{
		boolean isNoMo = false;
		String sql = "SELECT * FROM ChannelSpecialWithSpNoMo a WHERE a.TypeID=1 AND a.ChannelID=?";
		Map<Integer, Object> map = new HashMap<Integer, Object>();
		map.put(1, ChannelID);
		List<ChannelSpecialWithSpNoMo> list = DbUtils.doQueryClass(null,
				ChannelSpecialWithSpNoMo.class, sql, map);
		if (list != null && list.size() >= 1)
		{   t.setValue(list.get(0));
			isNoMo = true;
		}
		return isNoMo;
	}
}
